﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditSignTable.aspx.cs" Inherits="Manager_EditSignTable"  enableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link href="../js/jquery.datepick.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        @import "../js/jquery.datepick.css";
    </style>
    <script type="text/javascript" src="../js/jquery.min.js"></script>

    <script type="text/javascript" src="../js/jquery.datepick.js" charset="UTF-8"></script>

    <script type="text/javascript" src="../js/jquery.datepick-zh-CN.js" charset="UTF-8"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="main-text" style="min-height: 215px;" id="printTab">
        <div style="height: 1px;">
            &nbsp;</div>
        <table width="98%" border="0" cellspacing="0" cellpadding="0" class="sign_tbl">
            <tr>
                <td colspan="9" style="text-align: center; font-size: 16px; font-weight: bold; padding: 10px;">
                    深圳市龙岗区机关幼儿园新生报名登记表
                </td>
            </tr>
            <tr>
                <td width="7%" rowspan="7" class="lttl">
                    幼儿<br />
                    情况
                </td>
                <td width="7%" class="lttl">
                    姓名
                </td>
                <td width="16%">
                    <asp:TextBox ID="txtUserName" runat="server" MaxLength="50" CssClass="inputWidth100"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                        ErrorMessage="姓名必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
                <td width="7%" class="lttl">
                    性别
                </td>
                <td width="16%">
                    <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Text="男" Value="1"></asp:ListItem>
                        <asp:ListItem Text="女" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="rblSex"
                        ErrorMessage="性别必须选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
                <td width="7%" class="lttl">
                    出生<br />
                    日期
                </td>
                <td width="16%">
                    <asp:TextBox ID="calBirthday" MaxLength="12" runat="server" CssClass="inputWidth100"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="calBirthday"
                        ErrorMessage="出生日期格式不对" Operator="DataTypeCheck" Type="Date" Display="None" ForeColor="#FF0066"></asp:CompareValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="calBirthday"
                        ErrorMessage="出生日期必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
                <td colspan="2" rowspan="5" class="lttl">
                    &nbsp; 贴照片
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    籍贯
                </td>
                <td>
                    <asp:TextBox ID="txtPlaceOrigin" MaxLength="200" runat="server" CssClass="inputWidth100"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPlaceOrigin"
                        ErrorMessage="籍贯必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
                <td class="lttl">
                    出生地
                </td>
                <td>
                    <asp:TextBox ID="txtPlaceBirth" MaxLength="200" runat="server" CssClass="inputWidth100"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtPlaceBirth"
                        ErrorMessage="出生地必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
                <td class="lttl">
                    申请<br />
                    班级
                </td>
                <td>
                    <asp:DropDownList ID="rblClass" runat="server"  RepeatLayout="Flow">
                    </asp:DropDownList>
                    <asp:HiddenField ID="hfClassID" runat="server" />
                    <asp:HiddenField ID="hfClass" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="rblClass"
                        ErrorMessage="申请班级必选择！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    户籍<br />
                    类别
                </td>
                <td colspan="5">
                    <asp:RadioButtonList ID="rblCensusClass" runat="server" RepeatColumns="8" RepeatDirection="Horizontal" AutoPostBack="true"
                        RepeatLayout="Flow">
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="rblCensusClass"
                        ErrorMessage="户籍类型必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    儿童身<br />
                    份证号
                </td>
                <td colspan="5">
                    <asp:TextBox ID="txtIdCardNo" MaxLength="20" runat="server" CssClass="inputWidth200"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtIdCardNo"
                        ErrorMessage="儿童身份证号必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    户口<br />
                    所在地
                </td>
                <td colspan="5">
                    <asp:TextBox ID="txtCensusProvince" MaxLength="50" runat="server" CssClass="inputWidth50"></asp:TextBox>省
                    <asp:TextBox ID="txtCensusCity" MaxLength="50" runat="server" CssClass="inputWidth50"></asp:TextBox>市
                    <asp:TextBox ID="txtCensusArea" MaxLength="50" runat="server" CssClass="inputWidth50"></asp:TextBox>区（县）
                    <asp:TextBox ID="txtCensusPoliceStation" MaxLength="200" runat="server" CssClass="inputWidth100"></asp:TextBox>派出所
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    是否上<br />
                    过幼儿园
                </td>
                <td>
                    <asp:RadioButtonList ID="rbtIsInSchool" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Text="是" Value="1"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="rbtIsInSchool"
                        ErrorMessage="是否上过幼儿园必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
                <td colspan="6">
                    曾上过：<asp:TextBox ID="txtHadInSchool" MaxLength="200" runat="server" CssClass="inputWidth200"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    有无<br />
                    过敏史
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtAllergicHistory" MaxLength="200" runat="server" CssClass="inputWidth200"></asp:TextBox>
                </td>
                <td class="lttl">
                    特殊<br />
                    疾病
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtSepcialDisease" MaxLength="200" runat="server" CssClass="inputWidth200"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td rowspan="3" class="lttl">
                    在深<br />
                    居住<br />
                    情况
                </td>
                <td class="lttl">
                    住房<br />
                    性质
                </td>
                <td colspan="2">
                    <asp:DropDownList ID="rbtHouseNature" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="rbtHouseNature"
                        ErrorMessage="住房性质必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
                <td  colspan="2" class="lttl">
                    <asp:Label ID="labNoteNO" runat="server" Text="不动产登记号"></asp:Label>
                </td>
                <td colspan="3">
                    <asp:TextBox ID="TxtNoteNo" MaxLength="200" runat="server" CssClass="inputWidth200"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    家庭<br />
                    住址
                </td>
                <td colspan="7">
                    <asp:DropDownList ID="rbtHouseRegion" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:DropDownList>
                    <asp:DropDownList ID="rbtHouseGroup" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" ></asp:DropDownList>
                    <asp:DropDownList ID="rbtHouseNumber" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:DropDownList>
                    <asp:DropDownList ID="rbtHouseNumber1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:DropDownList>
                    <asp:DropDownList ID="rbtHouseNumber2" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:DropDownList>
                    <asp:HiddenField ID="hfHouseRegionID" runat="server" />
                    <asp:HiddenField ID="hfHouseGroupID" runat="server" />
                    <asp:HiddenField ID="hfHouseNumberID" runat="server" />
                    <asp:HiddenField ID="hfHouseNumberID1" runat="server" />
                    <asp:HiddenField ID="hfHouseNumberID2" runat="server" />
                    <asp:HiddenField ID="hfHouseRegion" runat="server" />
                    <asp:HiddenField ID="hfHouseGroup" runat="server" />
                    <asp:HiddenField ID="hfHouseNumber" runat="server" />
                    <asp:HiddenField ID="hfHouseNumber1" runat="server" />
                    <asp:HiddenField ID="hfHouseNumber2" runat="server" />
                    <asp:TextBox ID="txtHouseAddr" MaxLength="200" runat="server" CssClass="inputWidth400"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    住房<br />
                    时间
                </td>
                <td colspan="7">
                    <div id="calBuyDiv">
                    购房时间（
                    <asp:TextBox ID="calBuyHouseDate" MaxLength="12" runat="server" CssClass="inputWidth100"></asp:TextBox>）                   
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="calBuyHouseDate"
                        ErrorMessage="购房时间格式不对" Operator="DataTypeCheck" Type="Date" Display="None" ForeColor="#FF0066"></asp:CompareValidator>
                      </div>
                </td>
            </tr>
            <tr style="text-align: center;">
                <td rowspan="5" class="lttl">
                    父母<br />
                    情况
                </td>
                <td class="lttl">
                    关系
                </td>
                <td>
                    姓名
                </td>
                <td colspan="3">
                    工作单位
                </td>
                <td width="11%">
                    是否深户
                </td>
                <td width="12%">
                    是否缴纳社保
                </td>
                <td width="12%">
                    是否办理<br />深圳市居住证
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    父亲
                </td>
                <td>
                    <asp:TextBox ID="txtFatherName" MaxLength="50" runat="server" CssClass="inputWidth100"></asp:TextBox>
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtFatherWorks" MaxLength="200" runat="server" CssClass="inputWidth150"></asp:TextBox>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblFatherInSZ" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblFatherPaySB" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblFatherPayJZZ" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Text="是" Value="1"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="lttl">
                    母亲
                </td>
                <td>
                    <asp:TextBox ID="txtMotherName" MaxLength="50" runat="server" CssClass="inputWidth100"></asp:TextBox>
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtMotherWorks" MaxLength="200" runat="server" CssClass="inputWidth150"></asp:TextBox>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblMotherInSZ" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblMotherPaySB" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblMotherPayJZZ" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Text="是" Value="1"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
              <td class="lttl">
              		父亲身<br />
                    份证号</td>
              <td colspan="4">
              		<asp:TextBox ID="txtFatherCardNo" MaxLength="20" runat="server" CssClass="inputWidth200"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ControlToValidate="txtFatherCardNo"
                      ErrorMessage="父亲身份证号必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
              </td>
              <td class="lttl">
                联系电话
              </td>
              <td colspan="2">
                <asp:TextBox ID="txtFatherTel" MaxLength="50" runat="server" CssClass="inputWidth150"></asp:TextBox>
              </td>
            </tr>
            <tr>
              <td class="lttl">
              		母亲身<br />
                    份证号
              </td>
              <td colspan="4">
              		<asp:TextBox ID="txtMotherCardNo" MaxLength="20" runat="server" CssClass="inputWidth200"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtMotherCardNo"
                        ErrorMessage="母亲身份证号必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
              </td>                                    
                <td class="lttl">
                    联系电话
                </td>
                    <td colspan="2">
                    <asp:TextBox ID="txtMotherTel" MaxLength="50" runat="server" CssClass="inputWidth150"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="lttl">
                    家庭计划<br />
                    生育情况
                </td>
                <td colspan="7">
                    <asp:RadioButtonList ID="rbtPlanning" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="rbtPlanning"
                        ErrorMessage="家庭计划生育情况必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
              <td class="lttl" colspan="2">入读幼儿园</td>
              <td colspan="7"><p>您选择让孩子入读的幼儿园（单选）： <br />
                    <asp:RadioButtonList ID="rbtNurserySchool" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow" AutoPostBack="true" OnSelectedIndexChanged="rbtNurserySchool_OnSelectedIndexChanged">
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="rbtNurserySchool"
                        ErrorMessage="入读幼儿园必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
              </td>
            </tr>
            <tr>
                <td class="lttl" colspan="2">
                    备注
                </td>
                <td colspan="7">
                    <asp:TextBox ID="txtNotes" runat="server" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;
                </td>
                <td colspan="7" style="font-weight: bold; font-size: 14px;">
                    本人保证以上信息准确无误，如有虚假信息，责任自负。
                    <p>
                    </p>
                    <div style="width: 100%;">
                        <div style="padding-left: 400px;">
                            家长签名：<asp:TextBox ID="txtSignName" MaxLength="50" runat="server" CssClass="inputWidth100"></asp:TextBox></div>
                    </div>
                    <div style="width: 100%;">
                        <div style="padding-left: 400px;">
                            填表时间：<asp:TextBox ID="txtSignDate" MaxLength="50" runat="server" CssClass="inputWidth100"
                                ReadOnly="true"></asp:TextBox></div>
                    </div>
                </td>
            </tr>
            <tr>
        </table>
    </div>
	<div style="width: 749px;">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    </div>
    <div style="width: 749px; text-align: center; padding: 10px;">
    <asp:HiddenField ID="hfSelectId" runat="server" />
        <asp:Button ID="btnSubmit" runat="server" Text="修改" OnClick="btnSubmit_Click" />
    </div>
	
    </form>
</body>
    
<script language="javascript" type="text/javascript">
    var loadUrl = '';
    var hr = '<%=hfHouseRegion.Value %>';
    var hg = '<%=hfHouseGroup.Value %>';
    var hn = '<%=hfHouseNumber.Value %>';
    var hn1 = '<%=hfHouseNumber1.Value %>';
    var hn2 = '<%=hfHouseNumber2.Value %>';
    $(function () {
        var nature = $("#<%=rbtHouseNature.ClientID %>").val();
        loadUrl = "/Basic/LoadHouseInfo.ashx?F=" + $("#<%=rbtNurserySchool.ClientID %>").find("[checked]").val();

        if (nature == "1") {
            setVisibleTxt(false);
        } else {
            setVisibleTxt(true);
        }
        
        //$("#<%=rbtNurserySchool.ClientID %>").click(loadHouseNature);
        $("#<%=rbtHouseNature.ClientID %>").change(loadHouseNature);
        $("#<%=rbtHouseRegion.ClientID %>").change(loadGroup);
        $("#<%=rbtHouseGroup.ClientID %>").change(loadNumber);
        $("#<%=rbtHouseNumber.ClientID %>").change(loadNumberSub);
        $("#<%=rbtHouseNumber1.ClientID %>").change(setShowTxtValue);
        $("#<%=rbtHouseNumber2.ClientID %>").change(setShowTxtValue);
        //loadShowBox();
        //loadGroup();
        //loadHouseNature();
        //setValue();
    });

    function loadHouseNature() {
        var nature = $("#<%=rbtHouseNature.ClientID %>").val();
        if (nature == "1") {
            setVisibleTxt(false);
            var url = "/Basic/LoadHouseInfo.ashx?F=" + $("#<%=rbtNurserySchool.ClientID %>").find("[checked]").val() + "&ty=1";
            $("#<%=rbtHouseRegion.ClientID %>").load(url, '', loadGroup);

               if ($("#<%=calBuyHouseDate.ClientID %>").val() == "") {
                $("#<%=calBuyHouseDate.ClientID %>").focus();
               }
           } else {
               setVisibleTxt(true);
           }
           setShowTxtValue();
       }

       function loadGroup() {
           $("#<%=rbtHouseGroup.ClientID %>").closest();
        if ($("#<%=rbtHouseRegion.ClientID %>").val() != "other") {
            $("#<%=rbtHouseNumber.ClientID %>").show();
            $("#<%=rbtHouseNumber1.ClientID %>").show();
            $("#<%=rbtHouseNumber2.ClientID %>").show();
            $("#<%=rbtHouseGroup.ClientID %>").show();
            $("#<%=txtHouseAddr.ClientID %>").hide();
            var url = "/Basic/LoadHouseInfo.ashx?F=" + $("#<%=rbtNurserySchool.ClientID %>").find("[checked]").val() + "&ty=2&rID=" + $("#<%=rbtHouseRegion.ClientID %>").val();
            $("#<%=rbtHouseGroup.ClientID %>").load(url, '', loadNumber);
        } else {
            $("#<%=rbtHouseNumber.ClientID %>").hide();
            $("#<%=rbtHouseNumber1.ClientID %>").hide();
            $("#<%=rbtHouseNumber2.ClientID %>").hide();
            $("#<%=rbtHouseGroup.ClientID %>").hide();
            $("#<%=txtHouseAddr.ClientID %>").show();
        }
        setShowTxtValue();
    }

    function loadNumber() {
        $("#<%=rbtHouseNumber.ClientID %>").closest();
        var url = "/Basic/LoadHouseInfo.ashx?F=" + $("#<%=rbtNurserySchool.ClientID %>").find("[checked]").val() + "&ty=3&t=0&gID=" + $("#<%=rbtHouseGroup.ClientID %>").val();
        $("#<%=rbtHouseNumber.ClientID %>").load(url, '', loadNumberSub);
        setShowTxtValue();
    }

    function loadNumberSub() {
        $("#<%=rbtHouseNumber1.ClientID %>").closest();
        $("#<%=rbtHouseNumber2.ClientID %>").closest();
        url = "/Basic/LoadHouseInfo.ashx?F=" + $("#<%=rbtNurserySchool.ClientID %>").find("[checked]").val() + "&ty=3&t=1&gID=" + $("#<%=rbtHouseGroup.ClientID %>").val();
        url += "&nID=" + $("#<%=rbtHouseNumber.ClientID %>").val();
        $("#<%=rbtHouseNumber1.ClientID %>").load(url);
        url = "/Basic/LoadHouseInfo.ashx?F=" + $("#<%=rbtNurserySchool.ClientID %>").find("[checked]").val() + "&ty=3&t=2&gID=" + $("#<%=rbtHouseGroup.ClientID %>").val();
        url += "&nID=" + $("#<%=rbtHouseNumber.ClientID %>").val();
        $("#<%=rbtHouseNumber2.ClientID %>").load(url);
        setShowTxtValue();
    }

    function setVisibleTxt(isVisible) {
        if (isVisible) {
            $("#<%=rbtHouseNumber.ClientID %>").hide();
            $("#<%=rbtHouseNumber1.ClientID %>").hide();
            $("#<%=rbtHouseNumber2.ClientID %>").hide();
            $("#<%=rbtHouseGroup.ClientID %>").hide();
            $("#<%=rbtHouseRegion.ClientID %>").hide();
            $("#<%=txtHouseAddr.ClientID %>").show();
            $("#<%=labNoteNO.ClientID %>").hide();
            $("#<%=TxtNoteNo.ClientID %>").hide();
            $("#<%=labNoteNO.ClientID %>").val();
            $("#<%=TxtNoteNo.ClientID %>").val();
            $("#calBuyDiv").hide();
        }
        else {
            $("#<%=txtHouseAddr.ClientID %>").hide();
            $("#<%=rbtHouseGroup.ClientID %>").show();
            $("#<%=rbtHouseNumber.ClientID %>").show();
            $("#<%=rbtHouseNumber1.ClientID %>").show();
            $("#<%=rbtHouseNumber2.ClientID %>").show();
            $("#<%=rbtHouseRegion.ClientID %>").show();
            $("#<%=labNoteNO.ClientID %>").show();
            $("#<%=TxtNoteNo.ClientID %>").show();
            $("#calBuyDiv").show();

        }
    }
    function loadShowBox() {
        var nature = $("#<%=rbtHouseNature.ClientID %>").val();
        if (nature == "1") {
            $("#<%=txtHouseAddr.ClientID %>").hide();
        } else {
            $("#<%=txtHouseAddr.ClientID %>").show();
        }
    }

    function setShowTxtValue() {
        $("#<%=hfHouseRegionID.ClientID %>").val($("#<%=rbtHouseRegion.ClientID %>").val());
        $("#<%=hfHouseRegion.ClientID %>").val($("#<%=rbtHouseRegion.ClientID %>").find("option:selected").text());
        $("#<%=hfHouseGroupID.ClientID %>").val($("#<%=rbtHouseGroup.ClientID %>").val());
        $("#<%=hfHouseGroup.ClientID %>").val($("#<%=rbtHouseGroup.ClientID %>").find("option:selected").text());
        $("#<%=hfHouseNumberID.ClientID %>").val($("#<%=rbtHouseNumber.ClientID %>").val());
        $("#<%=hfHouseNumber.ClientID %>").val($("#<%=rbtHouseNumber.ClientID %>").find("option:selected").text());
        $("#<%=hfHouseNumberID1.ClientID %>").val($("#<%=rbtHouseNumber1.ClientID %>").val());
        $("#<%=hfHouseNumber1.ClientID %>").val($("#<%=rbtHouseNumber1.ClientID %>").find("option:selected").text());
        $("#<%=hfHouseNumberID2.ClientID %>").val($("#<%=rbtHouseNumber2.ClientID %>").val());
        $("#<%=hfHouseNumber2.ClientID %>").val($("#<%=rbtHouseNumber2.ClientID %>").find("option:selected").text());
        $("#<%=hfClassID.ClientID %>").val($("#<%=rblClass.ClientID %>").val());
        $("#<%=hfClass.ClientID %>").val($("#<%=rblClass.ClientID %>").find("option:selected").text());
    }
    function setValue() {
       // alert(hr+"hg"+hg+"hn"+hn+"hn1"+hn1+"hn2"+hn2);
        if (hr)
            $("#<%=rbtHouseRegion.ClientID %>").val(hr);
        if (hg)
            $("#<%=rbtHouseGroup.ClientID %>").val(hg);
        if (hn)
            $("#<%=rbtHouseNumber.ClientID %>").val(hn);
        if (hn1)
            $("#<%=rbtHouseNumber1.ClientID %>").val(hn1);
        if (hn2)
            $("#<%=rbtHouseNumber2.ClientID %>").val(hn2);

    }
</script>
</html>
